package com.helloworld.demo;

import java.util.ArrayList;
import java.util.List;

public class OOMTest {

    static List<User> list = new ArrayList<>();

    public static void main(String[] args) {
        int var1 = 0;
        int var2 = 0;

        while (true){
            list.add(new User(var1++));
            new User(var2--);
        }
    }

}
